<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">添加课程</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body">
        <table cellpadding="10px 5px" style="width: 100%;">
            <tr>
                <td width="100px">序号：</td>
                <td>
                    <input type="text" class="form-control" placeholder="序号" ng-model="form.sort" form-check="must"
                           form-check-alert="请输入序号">
                </td>
            </tr>
            <tr>
                <td>学段：</td>
                <td>
                    <select class="form-control" ng-options="stage.id as stage.name for stage in stageList"
                            ng-model="form.fk_stage" form-check="must" form-check-alert="请选择学段！">
                        <option value="">==请选择==</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>课程性质：</td>
                <td>
                    <select class="form-control" ng-model="form.flag" form-check="must" form-check-alert="请选择课程性质">
                        <option value="">==请选择==</option>
                        <option value="1">公用课程</option>
                        <option value="2">特色课程</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>学校：</td>
                <td>
                    <select class="form-control" ng-options="unit.id as unit.showname for unit in unitList"
                            ng-model="form.fk_unit">
                        <option value="">==请选择==</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>课程名：</td>
                <td>
                    <input type="text" class="form-control" placeholder="课程名" ng-model="form.name" form-check="must"
                           form-check-alert="请输入课程名">
                </td>
            </tr>
            <tr>
                <td>课程代码：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.code" form-check="must"
                           form-check-alert="请输入code值">
                </td>
            </tr>
            <tbody ng-if="isClassMajorShow == '1'">
            <tr>
                <td>专业：</td>
                <td>
                    <select id="major_select" class="selectpicker show-tick form-control" ng-model="form.fk_major"></select>
                </td>
            </tr>
            <tr>
                <td>教研室：</td>
                <td>
                    <select id="office_select" class="selectpicker show-tick form-control" ng-model="form.fk_organization">
                        <option value="">==请选择==</option>
                        <option ng-repeat="office in officeList" value="{{office.id}}">{{office.name}}</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>周课时：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.work_time">
                </td>
            </tr>
            <tr>
                <td>总学时：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.total_hours">
                </td>
            </tr>
            <tr>
                <td>考核方式：</td>
                <td>
                    <select class="form-control" ng-model="form.exam_type">
                        <option value="">==请选择==</option>
                        <option value="1">考试</option>
                        <option value="2">考查</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>学分：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.credit">
                </td>
            </tr>
            <tr>
                <td>理论学时：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.theoretical_hours">
                </td>
            </tr>
            <tr>
                <td>实践学时：</td>
                <td>
                    <input type="text" class="form-control" ng-model="form.practice_hours">
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="modal-footer">
        <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存
        </button>
    </div>
</div>